<div id="catalog-list">
    <? if ($this->listElements):?>
    <div id="goods-list-wrap">
        <div id="search-block"></div>
        <div id="table-goods">
            <div id="sort-block"></div>
        </div>
        <table id="rent-list">
            <thead>
            <tr>
                <th class="photo">Фото</th>
                <th class="description">Название</th>
                <th class="price">1 день <br/><small>(руб/сут)</small></th>
                <th class="price">2 дня<br/><small>и более</small><br/><small>(руб/сут)</small></th>
                <th class="bail">Залог <br/><small>(руб)</small></th>
            </tr>
            </thead>
            <tbody>
            <? foreach ($this->listElements as $element):?>
                <?/** @var $element Application_Model_Rent */?>
                <tr>
                    <td class="photo">
                        <a rel="goods" href="/ajax/getgood?ajax=true&id=<?= $element->getId(); ?>&type=<?= Application_Model_Factory::TYPE_RENT?>">
                            <img src="<?= $element->getIconUrl(); ?>" />
                        </a>
                    </td>
                    <td class="description">
                        <a class="info-text" rel="goods" href="/ajax/getgood?ajax=true&id=<?= $element->getId(); ?>&type=<?= Application_Model_Factory::TYPE_RENT?>">
                            <?= $element->getTitle(); ?>
                        </a>
                    </td>
                    <td class="price"><?= $element->getRentPrice(); ?></td>
                    <td class="price"><?= $element->getRentPriceMore(); ?></td>
                    <td class="bail"><?= $element->getRentBail(); ?></td>
                </tr>
            <? endforeach; ?>
            </tbody>
        </table>
    </div>
    <? endif?>
    <div id="vk_comments" style="margin-top: 30px"></div>
</div>
<script type="text/javascript">
    VK.Widgets.Comments("vk_comments", {limit: 10, width: "560", attach: "*",autoPublish:0});
</script>